// /common/http.api.js
let userInfoUrl="/user/information";
let carNumurl="/indent/orderNum";
let Commissionurl="/index/getCommission";
let collectListurl="/user//collect";

let Financialurl="/Financial/info";

let Configurl="/index/getConfig";
let Bannerurl="/index/banner";


const install = (Vue, vm) => {
	let userInfo= (params = {}) => vm.$u.post(userInfoUrl, params);
	let carNum= (params = {}) => vm.$u.post(carNumurl, params);
	let  Commission= (params = {}) => vm.$u.post(Commissionurl, params);
	let  collect= (params = {}) => vm.$u.post(collectListurl, params);
	let  Financial= (params = {}) => vm.$u.post(Financialurl, params);
	let  getConfig= (params = {}) => vm.$u.post(Configurl, params);
	let  getBanner= (params = {}) => vm.$u.post(Bannerurl, params);
	
	vm.$u.api = {userInfo,carNum,Commission,collect,Financial,getConfig,getBanner};
}

export default {
	install
}